package com.caizi.remote.rmi.server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class ProductImpl extends UnicastRemoteObject implements Product {

    private String name;

    protected ProductImpl(String name) throws RemoteException {
        super();
        this.name = name;
    }

    private static final long serialVersionUID = 1L;

    public String getDescription() throws RemoteException {
        return "I'm " + name + ". Buy me.";
    }

}
